package com.john.spring.hessian.service.impl;

import com.john.spring.hessian.service.AddService;
import org.springframework.stereotype.Service;


@Service("addService")
@EnableHessianServer
public class AddServiceImpl implements AddService {

	@Override
	public int add(int a, int b) {
		System.out.println("add(int a, int b) is invoked");
		return a + b;
	}

	@Override
	public long add(long a, long b) {
		System.out.println("add(long a, long b) is invoked");
		return a + b;
	}
}  
